; The CMD file.
;Por Lord-S

;-| Super Motions |--------------------------------------------------------

[Command]
name = "hiper"
command = ~D, DF, F, a+b

[Command]
name = "hiper2"
command = ~D, DB, B, a+b

[Command]
name = "hiper3"
command = ~70b

;-| Special Motions |------------------------------------------------------

[Command]
name = "super1"
command = ~D, DF, F, a
[Command]
name = "super2"
command = ~D, DF, F, b

[Command]
name = "super3"
command = ~D, DB, B, b
[Command]
name = "super4"
command = ~D, DB, B, a

[Command]
name = "super5"
command = ~10$B, F, a
[Command]
name = "super5"
command = ~10$B, F, b

[Command]
name = "terremoto"
command = ~50a

;-| Double Tap |-----------------------------------------------------------
[Command]
name = "FF"     ;Required (do not remove)
command = F, F
time = 10

[Command]
name = "BB"     ;Required (do not remove)
command = B, B
time = 10

;-| 2/3 Button Combination |-----------------------------------------------
[Command]
name = "recovery";Required (do not remove)
command = x+y
time = 1
[Command]
name = "recovery"
command = a+b
time = 1

;-| Dir + Button |---------------------------------------------------------
[Command]
name = "down_a"
command = /$D,a
time = 1

[Command]
name = "down_b"
command = /$D,b
time = 1

;-| Single Button |---------------------------------------------------------
[Command]
name = "a"
command = a
time = 1

[Command]
name = "b"
command = b
time = 1

[Command]
name = "c"
command = c
time = 1

[Command]
name = "x"
command = x
time = 1

[Command]
name = "y"
command = y
time = 1

[Command]
name = "z"
command = z
time = 1

[Command]
name = "start"
command = s
time = 1

;-| Hold Dir |--------------------------------------------------------------
[Command]
name = "holdfwd";Required (do not remove)
command = /$F
time = 1

[Command]
name = "holdback";Required (do not remove)
command = /$B
time = 1

[Command]
name = "holdup" ;Required (do not remove)
command = /$U
time = 1

[Command]
name = "holddown";Required (do not remove)
command = /$D
time = 1

;---------------------------------------------------------------------------
; 2. State entry
; Don't remove the following line. It's required by the CMD standard.
[Statedef -1]

;===========================================================================
;---------------------------------------------------------------------------
;Hiper throw

[State -1] 
type = ChangeState
value = 3000
triggerall = command = "hiper"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = stateno = (200,205)
trigger2 = movehit

;---------------------------------------------------------------------------
;Hiper sequencia

[State -1] 
type = ChangeState
value = 3100
triggerall = command = "hiper2"
triggerall = power >= 1000
triggerall = statetype != A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Hiper sequencia

[State -1] 
type = ChangeState
value = 3200
triggerall = command = "hiper3"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl

;===========================================================================
;super ball
[State -1]
type = ChangeState
value = 1000
triggerall = command = "super1"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 205
trigger2 = movecontact

;------------------------------------
;flame zippo
[State -1]
type = ChangeState
value = 1100
triggerall = command = "super2"
triggerall = statetype = S
trigger1 = ctrl = 1
trigger2 = movecontact

;------------------------------------
;vertical kick
[State -1]
type = ChangeState
value = 1200
triggerall = command = "super3"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger2 = stateno = 215
trigger2 = movecontact

;------------------------------------
;pedrada
[State -1]
type = ChangeState
value = 1300
triggerall = command = "super4"
trigger1 = statetype = S
trigger1 = ctrl = 1
trigger1=numproj=0
trigger2 = stateno = 200
trigger2 = movecontact

;------------------------------------
;terremoto
[State -1]
type = ChangeState
value = 1400
triggerall = command = "terremoto"
trigger1 = statetype = S
trigger1 = ctrl = 1

;---------------------------------------------------------------------------
;Run Fwd

[State -1, Run Fwd]
type = ChangeState
value = 100
trigger1 = command = "FF"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------
;Run Back

[State -1, Run Back]
type = ChangeState
value = 105
trigger1 = command = "BB"
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------
;Run kick

[State -1, Run kick]
type = ChangeState
value = 300
trigger1 = command = "b"
trigger1 = stateno = 100

;---------------------------------------------------------------------
[State -1, Throw]
type = ChangeState
value = 800
triggerall = command = "a"
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 3
trigger2 = (p2statetype = S) || (p2statetype = C)

;---------------------------------------------------------------------
[State -1, Throw2]
type = ChangeState
value = 820
triggerall = command = "b"
triggerall = statetype = S
triggerall = ctrl = 1
trigger1 = command = "holdfwd"
trigger1 = p2bodydist X < 3
trigger1 = (p2statetype = S) || (p2statetype = C)
trigger2 = command = "holdback"
trigger2 = p2bodydist X < 3
trigger2 = (p2statetype = S) || (p2statetype = C)

;===========================================

;Stand strong Punch

[State -1, Stand SPunch]
type = ChangeState
value = 200
triggerall = command = "a"
triggerall = command != "holddown"
trigger1 = p2bodydist X >= 4
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205
trigger2 = movecontact

;Stand Light Punch

[State -1, Stand LPunch]
type = ChangeState
value = 205
triggerall = command = "a"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 3
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 215
trigger2 = movecontact

;---------------------------------------------------------------------------
;Stand kick
[State -1, Stand Kick]
type = ChangeState
value = 210
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist X >= 6
trigger1 = statetype = S
trigger1 = ctrl
trigger2 = stateno = 205
trigger2 = movecontact
trigger3 = stateno = 200
trigger3 = movecontact

;---------------------------------------------------------------------------
;Stand kick3
[State -1, Stand Kick3]
type = ChangeState
value = 215
triggerall = command = "b"
triggerall = command != "holddown"
triggerall = p2bodydist X <= 5
trigger1 = statetype = S
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching Light Punch

[State -1, Crouching Light Punch]
type = ChangeState
value = 400
triggerall = command = "a"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl

;---------------------------------------------------------------------------
;Crouching kick

[State -1, Crouching Strong Punch]
type = ChangeState
value = 410
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = C
trigger1 = ctrl
trigger2 = stateno = 400
trigger2 = movecontact

;---------------------------------------------------------------------------
;Butt

[State -1, Jump butt]
type = ChangeState
value = 620
triggerall = command = "b"
triggerall = command = "holddown"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump Light Punch

[State -1, Jump Light Punch]
type = ChangeState
value = 600
triggerall = command = "a"
trigger1 = statetype = A
trigger1 = ctrl

;---------------------------------------------------------------------------
;Jump kick

[State -1, Jump kick]
type = ChangeState
value = 610
triggerall = command = "b"
trigger1 = statetype = A
trigger1 = ctrl